<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>菜品接收设置管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $('#inputForm').bootstrapValidator({
                message: 'This value is not valid',
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
						
					restaurantOrderId: {
                            message: 'restaurantOrderId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'restaurantOrderId不能为空'
                                }
                            }
                        }
						,
					mchId: {
                            message: 'mchId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'mchId不能为空'
                                }
                            }
                        }
						,
					outTradeNo: {
                            message: 'outTradeNo格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'outTradeNo不能为空'
                                }
                            }
                        }
						,
					subject: {
                            message: 'subject格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'subject不能为空'
                                }
                            }
                        }
						,
					amount: {
                            message: 'amount格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'amount不能为空'
                                }
                            }
                        }
						,
					currency: {
                            message: 'currency格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'currency不能为空'
                                }
                            }
                        }
						,
					operatorId: {
                            message: 'operatorId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'operatorId不能为空'
                                }
                            }
                        }
						,
					notifyUrl: {
                            message: 'notifyUrl格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'notifyUrl不能为空'
                                }
                            }
                        }
						,
					tradeType: {
                            message: 'tradeType格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'tradeType不能为空'
                                }
                            }
                        }
						,
					tradeNo: {
                            message: 'tradeNo格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'tradeNo不能为空'
                                }
                            }
                        }
						,
					payUri: {
                            message: 'payUri格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'payUri不能为空'
                                }
                            }
                        }
						,
					payStatus: {
                            message: 'payStatus格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'payStatus不能为空'
                                }
                            }
                        }
                }
            })
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs nav-tabss">
		<li><a href="${ctx}/pay/restaurantOrderPay/">菜品接收设置列表</a></li>
		<li class="active"><a href="${ctx}/pay/restaurantOrderPay/form?id=${restaurantOrderPay.id}">菜品接收设置<shiro:hasPermission name="pay:restaurantOrderPay:edit">${not empty restaurantOrderPay.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="pay:restaurantOrderPay:edit">查看</shiro:lacksPermission></a></li>
	</ul>
	<div class="ibox-content">
		<form:form id="inputForm" modelAttribute="restaurantOrderPay" action="${ctx}/pay/restaurantOrderPay/save" method="post" class="form-horizontal">
			<tags:message content="${message}"/>
			<form:hidden path="id"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="restaurantOrderId">restaurantOrderId:</label>
                    <div class="col-sm-4">
                        <form:input path="restaurantOrderId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="mchId">mchId:</label>
                    <div class="col-sm-4">
                        <form:input path="mchId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="outTradeNo">outTradeNo:</label>
                    <div class="col-sm-4">
                        <form:input path="outTradeNo" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="subject">subject:</label>
                    <div class="col-sm-4">
                        <form:input path="subject" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="amount">amount:</label>
                    <div class="col-sm-4">
                        <form:input path="amount" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="currency">currency:</label>
                    <div class="col-sm-4">
                        <form:input path="currency" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="operatorId">operatorId:</label>
                    <div class="col-sm-4">
                        <form:input path="operatorId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="notifyUrl">notifyUrl:</label>
                    <div class="col-sm-4">
                        <form:input path="notifyUrl" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="tradeType">tradeType:</label>
                    <div class="col-sm-4">
                        <form:input path="tradeType" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="tradeNo">tradeNo:</label>
                    <div class="col-sm-4">
                        <form:input path="tradeNo" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="payUri">payUri:</label>
                    <div class="col-sm-4">
                        <form:input path="payUri" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="payStatus">payStatus:</label>
                    <div class="col-sm-4">
                        <form:input path="payStatus" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-4">
					<shiro:hasPermission name="pay:restaurantOrderPay:edit">
						<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
					</shiro:hasPermission>
					<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
				</div>
			</div>
		</form:form>
	</div>
</body>
</html>
